package com.cloud.server.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;


@ConfigurationProperties
public class CloudServerPorperties {
	@Value("${spring.application.name}")
	private String appName;
	@Value("${server.port}")
	private Integer port;
	@Value("${cloud.registery.address}")
	private String serverUrl;
	
	public String getAppName() {
		return appName;
	}

	public void setAppName(String appName) {
		this.appName = appName;
	}

	public Integer getPort() {
		return port;
	}

	public void setPort(Integer port) {
		this.port = port;
	}

	public String getServerUrl() {
		return serverUrl;
	}

	public void setServerUrl(String serverUrl) {
		this.serverUrl = serverUrl;
	}

	@Override
	public String toString() {
		return "CloudServerPorperties [appName=" + appName + ", port=" + port + ", serverUrl=" + serverUrl + "]";
	}

}